<%--
  Created by IntelliJ IDEA.
  User: lucas
  Date: 2018/1/31
  Time: 下午5:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common.jsp"%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户管理--空调小程序后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${ctx}/css/public.css" media="all" />
    <style>
        .laytable-cell-1-logo{  /*最后的pic为字段的field*/
            height: 100%;
            max-width: 100%;
        }
    </style>
    <script>
        function searchIns(){
            var datatime=document.getElementById("dataselect").value;
            location.href="../page/toAddUserStatis?date="+datatime;
        }
    </script>
</head>
<body class="childrenBody">
<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
        <form class="layui-form">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" class="layui-input" style="width: 190px;" id="dataselect" placeholder="日期范围">
                </div>
                <a class="layui-btn search_btn" data-type="reload" onclick="searchIns()" id="search">搜索</a>
            </div>

        </form>
    </blockquote>
</form>
<div id="container"></div>
<script type="text/javascript" src="${ctx}/layui/layui.js"></script>
<script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script>
<script type="text/javascript" src="${ctx}/js/loginLog/startBoxList.js"></script>
<script>

    // 图表配置
    var options = {
        chart: {
            type: 'line'                          //指定图表的类型，默认是折线图（line）
        },
        title: {
            text: '${startTime} ～ ${endTime}   日增统计'                 // 标题
        },
        xAxis: {
            categories: ${xDate}   // x 轴分类
        },
        yAxis: {
            title: {
                text: '每日新增人数'                // y 轴标题
            }
        },
        series: [{                              // 数据列
            name: '新增人数',                        // 数据列名
            data: ${yDate}                  // 数据
        }]
    };
    // 图表初始化函数
    var chart = Highcharts.chart('container', options);
</script>
</body>
</html>
